using System;
using System.Collections.Generic;

namespace Parking
{
	public class Acces
	{
		public Acces (String n, Parking p)
		{
			nom = n;
			parking = p;
			liste_bornes = new List<Borne>();
		}
		
		public Parking parking {
			get; private set;
		}
		
		public String nom {
			get; private set;
		}
		
		public List<Borne> liste_bornes {
			get; private set;
		}
		
		public Ticket garerVoiture (Voiture v)
		{
			return parking.garerVoiture (v);
		}
		
		public void ajouterBorne(Borne b) {
			liste_bornes.Add(b);
		}
		
		public Ticket reprendreVoiture (int pNumeroTicket){
			return parking.reprendreVoiture(pNumeroTicket);
		} 
	}
}
